package com.aos.erp.message.rest;

//@Slf4j
//@Api(tags = {"UI接口：消息模板参数接口"})
//@RestController
//@RequestMapping("/api/message/param")
//public class RestMTParamController {
//
//    @Resource
//    private MTParamService mtParamService;
//
//    @ApiOperation(value = "保存参数项")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "mtpItem", value = "参数项Key", required = true, dataType = "String"),
//            @ApiImplicitParam(name = "mtpDesc", value = "参数项值", required = true, dataType = "String")
//    })
//    @PostMapping("/add")
//    public ResultEntity addParamItem(@ApiParam("入参") @RequestBody MTParamVo params) throws Exception {
//        params.setOptUser("张老师");
//        mtParamService.saveParamItem(params);
//        return ResultEntity.success("新增成功");
//    }
//
//    @ApiOperation(value = "编辑参数项")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "id", value = "参数项ID", required = true, dataType = "Long"),
//            @ApiImplicitParam(name = "mtpItem", value = "参数项Key", required = true, dataType = "String"),
//            @ApiImplicitParam(name = "mtpDesc", value = "参数项值", required = true, dataType = "String")
//    })
//    @PostMapping("/update")
//    public ResultEntity updateParamItem(@ApiParam(value = "入参") @RequestBody MTParamVo params) throws Exception {
//        params.setOptUser("张老师");
//        mtParamService.updateParamItem(params);
//        return ResultEntity.success("修改成功");
//    }
//
//    @ApiOperation(value = "删除参数项")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "dataId", value = "参数项ID", required = true, dataType = "Long", paramType = "Query")
//    })
//    @GetMapping("/delete")
//    public ResultEntity deleteParamItem(Long dataId) throws Exception {
//        mtParamService.deleteParamItem(dataId);
//        return ResultEntity.success("删除成功");
//    }
//
//    @ApiOperation(value = "查看参数项")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "dataId", value = "参数项ID", required = true, dataType = "Long", paramType = "Query")
//    })
//    @GetMapping("/detail")
//    public ResultEntity<MTParamInfo> detailMTParam(Long dataId){
//        return ResultEntity.success(mtParamService.getById(dataId));
//    }
//
//    @GetMapping("/list")
//    @ApiImplicitParams({
//            @ApiImplicitParam(name = "pageIndex", value = "当前页", required = true, dataType = "Integer", defaultValue = "1", paramType = "Query"),
//            @ApiImplicitParam(name = "pageSize", value = "每页大小", required = true, dataType = "Integer", defaultValue = "20", paramType = "Query")
//    })
//    @ApiOperation(value = "分页查询")
//    public ResultEntity<PageBean<MTParamInfo>> queryPageBean(int pageIndex, int pageSize) {
//        return ResultEntity.success(mtParamService.queryByPage(pageIndex, pageSize));
//    }
//
//
//    @GetMapping("/listAll")
//    @ApiOperation(value = "获取所有模板参数")
//    public ResultEntity<List<MTParamInfo>> queryAll() {
//        return ResultEntity.success(mtParamService.queryAll());
//    }
//}